package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.HgPushCycleMapper;
import com.csun.dsms.model.huang.HgMarketData;
import com.csun.dsms.model.huang.HgProjectInfo;
import com.csun.dsms.model.huang.HgPushCycleData;
import com.csun.dsms.model.huang.HgQueryDto;
import com.csun.dsms.service.HgProjectInfoService;
import com.csun.dsms.service.HgPushCycleService;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HgPushCycleServiceImpl extends BaseService<HgPushCycleData>
        implements HgPushCycleService {

    @Resource
    private HgPushCycleMapper hgPushCycleMapper;

    @Override
    public List<HgPushCycleData> queryList(HgQueryDto hgPushCycleData) {
        PageHelper.startPage(hgPushCycleData.getPageNum(),hgPushCycleData.getPageSize());
        return hgPushCycleMapper.queryList(hgPushCycleData);
    }
}
